
#ifdef FLASH_CODE_HEADER

static const uint32_t flash_code_STM32F0XX_OPT[100] = 
{
    0XE00ABE00,0X062D780D,0X24084068,0XD3000040,0X1E644058,0X1C49D1FA,0X2A001E52,0X4770D1F2,
    0X4A524853,0X49536042,0X60826041,0X21006081,0X68C16001,0X43112214,0X69C060C1,0XD4060740,
    0X494D484E,0X21066001,0X494D6041,0X20006081,0X48474770,0X22806901,0X61014311,0X15826901,
    0X61014391,0X47702000,0X4841B570,0X231468C1,0X60C14319,0X24206901,0X61014321,0X22406901,
    0X61014311,0X4A3D493F,0X6011E000,0X07ED68C5,0X6905D1FB,0X610543A5,0X24106905,0X61054325,
    0X4E394D35,0X80353555,0X6011E000,0X07ED68C5,0X6901D1FB,0X610143A1,0X421968C1,0X68C1D004,
    0X60C14319,0XBD702001,0XBD702000,0X4828B530,0X241468C1,0X60C14321,0X25206901,0X61014329,
    0X22406901,0X61014311,0X4A244926,0X6011E000,0X07DB68C3,0X6901D1FB,0X610143A9,0X422168C1,
    0X68C1D004,0X60C14321,0XBD302001,0XBD302000,0X47702001,0X4D16B5F0,0X08491C49,0X004968EB,
    0X43232404,0X261060EB,0XE01A4B16,0X4334692C,0X8814612C,0X4C118004,0X6023E000,0X07FF68EF,
    0X692CD1FB,0X612C43B4,0X271468EC,0XD005423C,0X211468E8,0X60E84308,0XBDF02001,0X1C921C80,
    0X29001E89,0X2000D1E2,0X0000BDF0,0X45670123,0X40022000,0XCDEF89AB,0X00005555,0X40003000,
    0X00000FFF,0X0000AAAA,0X1FFFF800,0X00000000,
};

static const program_target_t flash_algo_STM32F0XX_OPT =
{
    0X20000021,  // Init
    0X20000053,  // UnInit
    0X20000069,  // EraseChip
    0X200000CD,  // EraseSector
    0X20000115,  // ProgramPage

    {
        0x20000001,  // BKPT : start of blob + 1
        0x20000C00,  // RSB  : address to access global/static data
        0x20001000,  // RSP  : stack pointer 
    },

    0x20000400,                      // mem buffer location
    0x20000000,                      // location to write prog_blob in target RAM
    sizeof(flash_code_STM32F0XX_OPT),       // prog_blob size
    flash_code_STM32F0XX_OPT,               // address of prog_blob 
    0x00000400,                      // ram_to_flash_bytes_to_be_written
};

#endif

#ifdef FLASH_CODE_TABLE
&flash_algo_STM32F0XX_OPT
#endif

